package com.zrrd.learn.framework.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author wrn
 * @version 1.0
 * @date 2023/9/14 16:17
 */

public class AopDemo {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext a = new AnnotationConfigApplicationContext();
        a.scan("com.zrrd.learn.framework.aop");
        a.refresh();

        MyTarget bean = a.getBean(MyTarget.class);
        bean.add();
    }

}
